import React, { Component } from 'react';
import ReactDOM from 'react-dom';

function Welcome(props) {
    return (<h2>你好,{props.name}!</h2>)
}
function App() {
    return (
        <>
            <Welcome name="阳光" />
            <Welcome name="洛奇" />
            <Welcome name="乐观" />
        </>
    )
}
ReactDOM.render(
    <App/>,
    document.getElementById('root'))